package com.bravo.mvpkotlin.data.source.romate

import com.bravo.mvpkotlin.data.Repo
import com.bravo.mvpkotlin.data.User
import com.bravo.mvpkotlin.data.Users
import com.bravo.mvpkotlin.data.source.IDataSource
import com.bravo.mvpkotlin.data.source.api.GithubService
import io.reactivex.Flowable

/**
 * Created by Administrator on 2017/6/22 0022.
 */
class RemoteDataSource(val service:GithubService) : IDataSource{

    override fun getRepos(path: String): Flowable<List<Repo>> = service.getRepos(path)

    override fun getUsers(key: String): Flowable<Users> =service.getUsers(key)
}